var a = getApp(), t = require("../../wxParse/wxParse.js");

Page({
    data: {},
    onLoad: function(a) {
        var t = this;
        t.setData({
            storeId: a.storeid
        }), t.getinitData();
    },
    getinitData: function() {
        var e = this;
        wx.request({
            url: a.globalData.baseUrl + a.globalData.urlBrandsStory,
            data: {
                storeId: e.data.storeId
            },
            method: "POST",
            header: {
                "content-type": "application/x-www-form-urlencoded"
            },
            success: function(a) {
                var o = JSON.parse(a.data);
                if (0 == o.code) {
                    var r = o.msg;
                    t.wxParse("article", "html", r, e, 5);
                } else wx.showToast({
                    title: "请求失败",
                    icon: "none",
                    duration: 2e3
                });
                console.log(o);
            }
        });
    },
    onReady: function() {},
    onShareAppMessage: function() {}
});